package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(value = "MallProductModel", description = "商品表")
@Data
@TableName(value = "MALL_PRODUCT", autoResultMap = true)
public class MallProductModel extends BaseModel {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("商品id")
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty("商户Id")
	private Long shopId;

	@ApiModelProperty("商品图片")
	private String image;

	@ApiModelProperty("展示图")
	private String flatPattern;

	@ApiModelProperty("轮播图")
	private String sliderImage;

	@ApiModelProperty("商品名称")
	private String name;

	@ApiModelProperty("商品简介")
	private String intro;

	@ApiModelProperty("关键字,英文逗号拼接")
	private String keyword;

	@ApiModelProperty("商户分类id(逗号拼接)")
	private String cateId;

	@ApiModelProperty("品牌id")
	private Long brandId;

	@ApiModelProperty("平台分类id")
	private Long categoryId;

	@ApiModelProperty("保障服务ids(英文逗号拼接)")
	private String guaranteeIds;

	@ApiModelProperty("商品价格")
	private BigDecimal price;

	@ApiModelProperty("会员价格")
	private BigDecimal vipPrice;

	@ApiModelProperty("市场价")
	private BigDecimal otPrice;

	@ApiModelProperty("单位名")
	private String unitName;

	@ApiModelProperty("销量")
	private Integer sales;

	@ApiModelProperty("库存")
	private Integer stock;

	@ApiModelProperty("成本价")
	private BigDecimal cost;

	@ApiModelProperty("虚拟销量")
	private Integer ficti;

	@ApiModelProperty("浏览量")
	private Integer browse;

	@ApiModelProperty("商品二维码地址(用户小程序海报)")
	private String codePath;

	@ApiModelProperty("淘宝京东1688类型")
	private String sourceLink;

	@ApiModelProperty("主图视频链接")
	private String videoLink;

	@ApiModelProperty("运费模板ID")
	private Integer tempId;

	@ApiModelProperty("总后台排序")
	private Integer rank;

	@ApiModelProperty("规格 0单 1多")
	private Boolean specType;

	@ApiModelProperty("是否回收站")
	private Boolean isRecycle;

	@ApiModelProperty("是否单独分佣")
	private Boolean isSub;

	@ApiModelProperty("状态（0：未上架，1：上架）")
	private Boolean isShow;

	@ApiModelProperty("审核状态：0-无需审核 1-待审核，2-审核成功，3-审核拒绝")
	private Integer auditStatus;

	@ApiModelProperty("是否加入审核，0-正常，1-审核流程中")
	private Boolean isAudit;

	@ApiModelProperty("拒绝原因")
	private String reason;

	@ApiModelProperty("排序")
	private Integer sortOrder;

	@ApiModelProperty("商品详情")
	@TableField(exist = false)
	private String content;

	@ApiModelProperty("活动边框 列表中是边框 详情中是背景图")
	@TableField(exist = false)
	private String activityStyle;
}
